<html>
<head>
	<title>Excersise 4</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
	var numbers = new Array(43711, 315, 2176, 5735, 658, 4175, 5783);
	var numStr;
		for (var i = 0;i < 7;i++)
		{
			numStr = numbers[i].toString();
			if ((numStr.charAt(numStr.length - 3) == 7))
			{
				jsConsole.writeLine("third digit (right to left) of " + numStr + " is 7");
			}
			else
			{
				jsConsole.writeLine("third digit (right to left) of " + numStr + " is NOT 7");
			}		
		}
	</script>
</body>
</html>
